import request from '@/utils/request'

// 获取商品详情
export function getBook(data) {
  return request({
    url: `/system/book/${data}`,
    method: 'get'
  })
}

// 获取书籍列表
export function getBookList(data) {
	console.log(data)
  return request({
    url: `/system/book/list`,
    method: 'get',
    params: data
  })
}

export default {
  getBook,
  getBookList
}
